package com.intelligent.health.setmeal.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.intelligent.health.setmeal.pojo.CheckItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: torlesse-liang
 * @Date: 2022/03/13/22:40
 * @Description:
 */
@Mapper
public interface CheckItemMapper extends BaseMapper<CheckItem> {

    /**
     * 根据检查项id逻辑删除检查项
     *
     * @param checkItemId
     */
    void delCheckItemById(@Param("checkItemId") Integer checkItemId);

    /**
     * 查询检查项集合
     *
     * @param checkGroupId
     * @return
     */
    List<CheckItem> queryCheckItems(@Param("checkGroupId") Integer checkGroupId);

    /**
     * 批量逻辑删除检查项
     *
     * @param checkItemIds
     */
    void delBatchCheckItem(ArrayList<Integer> checkItemIds);

    /**
     * 检查项查询-for export Excel
     *
     * @param hashMap
     * @return
     */
    List<CheckItem> queryCheckItemsForExcel(HashMap<String, Object> hashMap);
}
